package TEST;

import java.util.Scanner;

public class Test03 {


        public static void main(String arcs[]){
            BankAccount Tom;
            Tom = new BankAccount();
            Scanner sc=new Scanner(System.in);
            int a=sc.nextInt();
            Scanner TakeMoney=new Scanner(System.in);
            int b=TakeMoney.nextInt();
            Scanner GetMoney=new Scanner(System.in);
            int c=GetMoney.nextInt();
            Tom.Nowmoney(a);
            Tom.getBlance(b);
            Tom.withdraw(b,c);
        }
    }

    class BankAccount{
        int Money;
        BankAccount(){
            Money=0;
        }
        void Nowmoney(int Money){
            this.Money=Money;
            System.out.println(Money);
        }
        void getBlance(int TakeMoney){
            Money=Money-TakeMoney;
            System.out.println(Money);
        }
        void withdraw(int TakeMoney,int GetMoney){
            Money=Money+GetMoney;
            System.out.println(Money);
        }
    }


